package demo4_i;

public class Fish extends Animal implements ISwimming{
    //先初始化
    public Fish(String name, int age){
        super(name, age);
    }
    //抽象方法重写
    @Override
    public void eat(){
        System.out.println(this.name+"吃鱼食");
    }
    @Override
    public void swim(){
        System.out.println(this.name+"正在游");
    }
}
